﻿#ifndef OPENPRJDIALOG_H
#define OPENPRJDIALOG_H

#include "components/FWidgets/Base/FDialog.h"
#include "components/ClosableListWidget/ClosableListWidgetItem.h"

namespace Ui {
class OpenPrjDialog;
}

class OpenPrjDialog : public FDialog
{
    Q_OBJECT

public:
    explicit OpenPrjDialog(QWidget *parent = nullptr);
    ~OpenPrjDialog();

protected:


private slots:
    void openProject(const QString& prjPath);

    void on_lwRecent_itemClicked(ClosableListWidgetItem* item);

    void on_lwRecent_itemActivated(ClosableListWidgetItem* item);

    void on_lwRecent_itemRemoved(const QString& text);

    void on_btnBrowse_clicked();

    void on_btnConfirm_clicked();

    void on_btnCancel_clicked();

private:
    Ui::OpenPrjDialog *ui;
};

#endif // OPENPRJDIALOG_H
